
console.log(import.meta);
const {VITE_vueApp,VITE_reactApp} = import.meta.env;
console.log(VITE_vueApp,VITE_reactApp);

export const microApps = [
    {
        name: 'pro-app-react', // app name registered
        entry: import.meta.env.MODE === "development" ? '//localhost:3001' : VITE_reactApp,
        container: '#main-Container',
        activeRule: '/main/reactApp', //需要带main前缀 因为在子应用的container元素在main组件下 ，所有路径需匹配main 
        icon: new URL("@/assets/react.svg", import.meta.url).href,
    },
    {
        name: 'pro-app-vue',
        entry: import.meta.env.MODE === "development" ? '//localhost:2001' : VITE_vueApp,
        container: '#main-Container',
        activeRule: '/main/vueApp',
        icon: new URL("@/assets/vue.svg", import.meta.url).href
    },
]